package com.fcgzs.entity;

import java.util.List;

/**
 * @Auther: ljj
 * @Description:
 */
public class PageResult<T> {

    private Long total;   //总记录数
    private List<T> rows;    //分页后的结果集

    //注意：如果封装类中定义了有参的构造方法 则一定要定义无参的构造方法


    public PageResult() {
    }

    public PageResult(Long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
